import request from '@/utils/request'

export function submitLaApproval(data) {
  return request({
    url: 'living-allowances/submit?tempId=' + data.tempId,
    method: 'post',
    data: data
  })
}

export function tempStorage(data) {
  return request({
    url: 'temp-save/saveOrUpdate',
    method: 'post',
    data: data
  })
}

export function changeLa(data) {
  return request({
    url: 'living-allowances/change/' + data.approvalId,
    method: 'post',
    data: data
  })
}

export function changeReportLa(data) {
  return request({
    url: 'living-allowances/change-report/' + data.approvalId,
    method: 'post',
    data: data
  })
}

export function submitESApproval(data) {
  return request({
    url: 'educational-support/submit?tempId=' + data.tempId,
    method: 'post',
    data: data
  })
}

export function queryLaByIdCard(idCard) {
  return request({
    url: 'living-allowances/detail-id-card/' + idCard,
    method: 'get'
  })
}

export function queryApprovalMemberInfo(idCard){
  return request({
    url: '/living-allowances/approval-user-member-id-card/' + idCard,
    method: 'get'
  })
}
